package com.softer.wxzj.controller;

import com.softer.wxzj.common.entity.CommonResult;
import com.softer.wxzj.entity.SysLoginInfo;
import com.softer.wxzj.service.SysLoginInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Gong Zhiyang
 * @date 2020/6/11
 */
@RestController
@RequestMapping("/sysLoginInfo")
public class SysLoginInfoController {
    @Autowired
    private SysLoginInfoService sysLoginInfoService;

    /**
     * 新增登录信息
     *
     * @param sysLoginInfo 登录信息
     * @return 新增结果
     */
    @PostMapping("/addLoginInfo")
    public CommonResult addLoginInfo(SysLoginInfo sysLoginInfo) {
        return sysLoginInfoService.insertLoginInfo(sysLoginInfo);
    }
}
